export function useTimeSub(timeType) {
  let type, step, dateType;
  switch (timeType) {
    case '1':
      dateType = '1';
      type = 'hours';
      step = 1;
      break;
    case '2':
      dateType = '1';
      type = 'hours';
      step = 6;
      break;
    case '3':
      dateType = '1';
      type = 'hours';
      step = 12;
      break;
    case '4':
      dateType = '2';
      type = 'days';
      step = 1;
      break;
    case '5':
      dateType = '2';
      type = 'days';
      step = 3;
      break;
    case '6':
      dateType = '2';
      type = 'days';
      step = 7;
      break;
  }
  return { type, step, dateType };
}
